package com.ruoyi.system.domain.excel;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 说明 : 投诉实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "投诉信息表-实体")
@TableName("bs_complain")
public class BsComplainExcel implements Serializable {

    private static final long serialVersionUID = 5861318667734666305L;

    /**
     * id
     */
    @Excel(name = "序号")
    @ApiModelProperty(value = "投诉id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 投诉联系人
     */
    @Excel(name = "投诉人")
    @ApiModelProperty(value = "投诉联系人")
    private String complainName;
    /**
     * 投诉联系电话
     */
    @Excel(name = "手机号码")
    @ApiModelProperty(value = "投诉联系电话")
    private String complainPhone;

    /**
     * 投诉类型
     */
    @Excel(name = "投诉类型", dictType = "complain_type")
    @ApiModelProperty(value = "投诉类型")
    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Excel(name = "投诉时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 处理-处理状态 0待处理 1需跟进 2已处理
     */
    @Excel(name = "处理状态", dictType = "complain_handle_status")
    @ApiModelProperty(value = "处理-处理状态 0待处理 1需跟进 2已处理")
    private String handleStatus;

    /**
     * 处理-处理时间
     */
    @Excel(name = "处理时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理-处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

}
